package com.brainhealth.customer.mapper;

import java.util.List;
import com.brainhealth.customer.domain.CustomerLevel;

/**
 * 会员等级Mapper接口
 * 
 * @author wolong
 * @date 2023-04-19
 */
public interface CustomerLevelMapper 
{
    /**
     * 查询会员等级
     * 
     * @param customerLevelId 会员等级主键
     * @return 会员等级
     */
    public CustomerLevel selectCustomerLevelByCustomerLevelId(Long customerLevelId);

    /**
     * 查询会员等级列表
     * 
     * @param customerLevel 会员等级
     * @return 会员等级集合
     */
    public List<CustomerLevel> selectCustomerLevelList(CustomerLevel customerLevel);

    /**
     * 用会员成长值获取会员等级信息
     * @param levelValue
     * @return
     */
    public List<CustomerLevel> selectCustomerLevelByValue(Long levelValue);

    /**
     * 新增会员等级
     * 
     * @param customerLevel 会员等级
     * @return 结果
     */
    public int insertCustomerLevel(CustomerLevel customerLevel);

    /**
     * 修改会员等级
     * 
     * @param customerLevel 会员等级
     * @return 结果
     */
    public int updateCustomerLevel(CustomerLevel customerLevel);

    /**
     * 删除会员等级
     * 
     * @param customerLevelId 会员等级主键
     * @return 结果
     */
    public int deleteCustomerLevelByCustomerLevelId(Long customerLevelId);

    /**
     * 批量删除会员等级
     * 
     * @param customerLevelIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerLevelByCustomerLevelIds(Long[] customerLevelIds);
}
